GraphDifference
GraphDifference[g1,g2] gives the graph difference of the graphs g1 and g2.
GraphDifference[{v->w,…},…] uses rules v->w to specify the graph g.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.